package com.freesky.biz.rights.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.freesky.common.annotation.Desensitized;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
@TableName("tec_rights_pay")
public class RightsPayEntity implements java.io.Serializable{

    private String id;
    private String busiId;

    @TableField(exist = false)
    private String busiName;

    private String receiveId;

    @Desensitized(type = Desensitized.DesensitizedType.PHONE)
    private String mobile;
    private String openId;

    private String useFlag;

    private String type;

    private String amt;

    private String prepayId;        //支付ID

    private String cardType;        //信用卡类型

    private String transactionId;
    private String payStatus;   //支付状态
    private String processed;   //下发立减金标志，0，未处理，1已处理完成
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date processedDate;
    private String processedMsg;
    private String refundFlag;  //退款标志，0，未处理，1已退款
    private String delFlag;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String remark;

    /** 请求参数 */
    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
